﻿BusyIndicator = {
    Inital: function ()
    {
  
        $("#busyDialog .modal-content").css({
            'height': '80px'
        });
        $("#busyDialog").on('show.bs.modal', function () {
            $(this).css({
                'margin-top': ($(window).height() - $("#busyDialog .modal-content").height()) / 2
            });
         
            

        });
        //
        window.onbeforeunload = function () {
            $('#busyDialog').modal('show');
        }

        window.onunload = function ()
        {
            document.images['BusyImg'].src = document.images['BusyImg'].src;
        }
    }
}